package ink.teamwork.battery.entity;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.persistence.Transient;
import lombok.Data;

import java.time.LocalDateTime;

@Entity
@Table
@Data
public class User {
    @Id
    private String openId = "";
    private String nickname = "";
    private String unionId = "";
    private Integer sex = 0;
    private String language = "";
    private String city = "";
    private String province = "";
    private String country = "";
    private String avatar = "";
    private String vid = "";
    private LocalDateTime createdAt = LocalDateTime.now();
    private LocalDateTime updatedAt = LocalDateTime.now();

    @Transient
    private String accessToken = "";

    private String role = "user";
}